package oop.inherit.account;

public class TestAcc {
    public static void main(String[] args) {
        CheckAccount checkAccount = new CheckAccount(
                1122,
                20000,
                0.045,
                5000);

        checkAccount.withdraw(5000);
        System.out.println(checkAccount.getBalance());
        System.out.println(checkAccount.getOverdraft());

        System.out.println("=====================================");

        checkAccount.withdraw(18000);
        System.out.println(checkAccount.getBalance());
        System.out.println(checkAccount.getOverdraft());
        System.out.println("=====================================");

        checkAccount.withdraw(3000);
        System.out.println(checkAccount.getBalance());
        System.out.println(checkAccount.getOverdraft());
    }
}
